# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-funcy
_pkgname=funcy
pkgver=1.14
pkgrel=1
pkgdesc='A fancy and practical functional tools.'
arch=('any')
url='https://pypi.org/project/funcy/#files'
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
source=("$pkgname-$pkgver.tar.gz::https://github.com/Suor/funcy/archive/$pkgver.tar.gz")
sha512sums=('1844bf34f8cda440fc72e3b9ec455c10ab4410f63992d8d29dca91e96d78e034f4f1a5845a89cc3fe9659675b4eb3574b90fe3265aebb541bd4444bf6f6b2332')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

